<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>金融公司</title>
    <th:block th:include="statics/common/page/header"></th:block>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row class="search-panel-space">
            <div class="search-group">
                <i-col span="6">
                	<label class="search-label-20">金融机构:</label>
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称" class="search-item-width-75"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>    
        <Row :gutter="16">
            <div class="buttons-group">
                <i-button type="info" @click="add" th:if="${@shiroAuthService.hasPermission('basefinancecompany:save')}">
                	<i class="fa fa-plus"></i>&nbsp;新增</i-button>
                <i-button type="warning" @click="update" th:if="${@shiroAuthService.hasPermission('basefinancecompany:update')}">
                	<i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                <i-button type="error" @click="del" th:if="${@shiroAuthService.hasPermission('basefinancecompany:delete')}">
                	<i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
            </div>
        </Row>
	    <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="baseFinanceCompany" :rules="ruleValidate" :label-width="80">
            <Form-item label="金融机构" prop="name">
                <i-input v-model="baseFinanceCompany.name" placeholder="公司名称"/>
            </Form-item>
            <Form-item label="利润提成百分比" prop="profit">
                <i-input v-model="baseFinanceCompany.profit" placeholder="利润提成百分比"/>
            </Form-item>
            <Form-item label="固定金额提成" prop="poundage">
                <i-input v-model="baseFinanceCompany.poundage" placeholder="固定金额提成"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script th:src="@{../statics/js/sale/basefinancecompany.js}"></script>
</body>
</html>